/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package business;

import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;

/**
 * den v predpovedi
 * @author stana
 */
public class YRDay {
    /**
     * obsahuje informace o pocasi pro jednotlive hodiny
     */
    private Map<Integer,YrHour> hours=new HashMap<Integer, YrHour>();
    private String date;//datum ve formatu YYYY-MM-DD
    public YRDay(String date)
    {
        this.date=date;
    }
    public void addHour(int hour,YrHour yrHour)
    {
        hours.put(hour, yrHour);
    }
    public boolean isEmpty()
    {
        return hours.isEmpty();
    }

    public YrHour getHour(int hour)
    {
        return hours.get(hour);
    }





    /**
     * @return the date
     */
    public String getDate()
    {
        return date;
    }

    /**
     * @param date the date to set
     */
    public void setDate(String date)
    {
        this.date = date;
    }

}